<style type="text/css">
body {
    color: #666;
    font: 14px/24px sans-serif;
}

#container {
    width: 100%;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 10px;
    border-radius: 5px; /*optional*/
    color: #aaa;
    font-size: .875em;
}
</style>
<h3>DANH SACH HỒ SƠ TVGS(Chờ thẩm định)</h3>
<div style=" padding-bottom:20px">
Lĩnh Vực:
  <select name="linhvuc" id="linhvuc" onchange="paginatorPage('/tracuu/index/danhsachtvgs')">
  <option value="-1" <?php if($this->params['linhvuc']==-1){ echo 'selected';} ?>>Tất cả</option>
    <?php
    foreach($this->linhvuc as $itemlinhvuc){
    ?>
    <option value="<?=$itemlinhvuc["ID_LV"]?>" <?php if($this->params['linhvuc']==$itemlinhvuc["ID_LV"]){ echo 'selected';} ?>><?=htmlspecialchars($itemlinhvuc["NAME"])?></option>
    <?php
    }
    ?>
  </select>
  <div style="float:right; width:500px;text-align:right">
  Tìm trong:
  <select name="fieldsearch" id="fieldsearch" onchange="paginatorPage('/tracuu/index/danhsachtvgs')">
        <option value="1" <?php if($this->params['fieldsearch']==1){ echo 'selected';} ?>>Tên tổ chức</option>
        <option value="2" <?php if($this->params['fieldsearch']==2){ echo 'selected';} ?>>Số ĐKKD</option>
        <option value="3" <?php if($this->params['fieldsearch']==3){ echo 'selected';} ?>>Số điện thoại</option>
  </select>
        <input type="text" name="textsearch" id="textsearch" />
        <input name="" type="button" value="Tìm Kiếm" />
    </div>
<br/>
</div>
<div id="container">   
    <table  border="1" cellspacing="0" cellpadding="0">
  <tr>
    <th width="50px">STT</th>
    <th width="200px">Tên tổ chức</th>
    <th width="200px">Địa chỉ</th>
    <th width="100px">Điện Thoại</th>
    <th nowrap>Số ĐKKD</th>    
    <th nowrap>Ngày cấp</th>
    <th nowrap>Lĩnh vực đăng kí</th>
    <th>&nbsp;</th>
  </tr>
  <?php
  $stt = ($this->limit * ($this->page-1));
  foreach ($this->data as $data)
  {
      $stt++;
  ?>
  
  <tr>
    <td align="center"><?=$stt?></td>
    <td align="center"><?=$data['NAME']?></td>
    <td align="center"><?=$data['TRUSO']?></td>
    <td align="center"><?=$data['DIENTHOAI']?></td>
    <td align="center"><?=$data['GPDKKD_SO']?></td>
    <td align="center"><?=$data['GPDKKD_NGAY']?></td>
    <td align="center"><?=$data['LINHVUCNAME']?></td>
    <td align="center">
      <a href="javascript:void(0);" onclick="loadUrlToDivContent('/default/index/viewtvgstrang1?id=<?=$data['ID_BK1']?>')">Chi tiết</a><br/>      
      <a href="javascript:void(0);" onclick="loadUrlToDivContent('/thamdinh/index/thamdinhtvgsbuoc1?id=<?=$data['ID_BK1']?>')">Thẩm định</a><br/>
    </td>
  </tr>
  <?php
  }  
  ?>
</table>
</div>
<div style=" padding-top:20px">
<div style="padding-top:15px; width:200px; float:left">
<input type="hidden" value="1" name="readonly" id="readonly">
    Hiển thị: <select name="hienthi" id="hienthi" onchange="paginatorPage('/tracuu/index/danhsachtvgs')">
    <option value="5" <?php if($this->params['hienthi']==5){ echo 'selected';} ?>>5</option>
    <option value="10" <?php if($this->params['hienthi']==10){ echo 'selected';} ?>>10</option>
    <option value="20" <?php if($this->params['hienthi']==20){ echo 'selected';} ?>>20</option>
    <option value="50" <?php if($this->params['hienthi']==50){ echo 'selected';} ?>>50</option>
    <option value="100" <?php if($this->params['hienthi']==100){ echo 'selected';} ?>>100</option>
</select>
</div>
<div style="float:right; width:500px;text-align:right">
<?php echo $this->paginationControl($this->data, 'Sliding' , 'paginator.phtml');?>
</div>
</div>